﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Alogient.Cameleon.Membership
{
    public static class CMPageGroupAccess
    {
        public static bool PageIsRestricted(int navID)
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }

        public static string[] PageRolesAccess(int navID)
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }

        public static int[] RolePagesAccess(string role)
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }

        public static bool OpenPageAccess(int navID)
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }

        /// <summary>
        /// Removes existing restrictions, then set the new restrictions.
        /// </summary>
        /// <param name="roles"></param>
        /// <param name="navID"></param>
        /// <returns></returns>
        public static bool RestrictPageAcces(string[] roles, int navID)
        {
            // Removes existing restrictions, then creates the new restrictions.
            OpenPageAccess(navID);

            foreach (var s in roles)
            {
                throw new NotImplementedException("Not implemented"); // TODO
            }

            return false;
        }

        public static bool RoleHasAccessToPage(string role, int navID)
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }
    }
}
